package zut.wework.controller;

import org.springframework.web.bind.annotation.*;
import zut.wework.entity.Result;
import zut.wework.service.CanvasService;

import javax.annotation.Resource;

/**
 * @Classname: CanvasController
 * @Description: Canvas接口
 * @Date: 2022/5/15
 * @Created: by ifaxcaeles
 */
@RestController
@RequestMapping("/canvas")
public class CanvasController {
    @Resource
    private CanvasService canvasService;

    @GetMapping("/students/{courseId}")
    public Result getStudents(@PathVariable("courseId") String courseId) {
        return canvasService.getStuIds(courseId);
    }
}
